<template>
	<view class="manage-list" v-for="(g,index) in Manage.list">
		<view class="manage-list-header">
			{{g.title}}
		</view>
		<view class="manage-options-list">
			<view class="manage-options-list-li" v-for="(k,kindex) in g.children" @click="clickButtonLi(k)">
				<image class="manage-options-list-li-image" :src="k.image" mode=""></image>
				<text class="manage-options-list-li-name">{{k.title}}</text>
			</view>
		</view>
	</view>
</template>

<script setup>
	defineProps(["Manage"])
	function clickButtonLi(item) {
		let {
			name,
			path
		} = item
		if (path) {
			uni.navigateTo({
				url: path
			})
		}
	}
</script>

<style scoped>
	
	.manage-list {
		margin-bottom: 10rpx;
		overflow: hidden;
		font-size: 30rpx;
	}
	
	.manage-list-header {
		height: 78rpx;
		padding-left: 30rpx;
		line-height: 78rpx;
	}
	
	.manage-options-list {
		display: flex;
		flex-wrap: wrap;
		
	}
	.manage-options-list-li {
		width: 20%;
		padding: 25rpx 0rpx;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		gap: 8rpx;
	}
	
	.manage-options-list-li:active {
		background: #c3c3c344;
	}
	
	.manage-options-list-li-image {
		width: 65rpx;
		height: 65rpx;
		background: gray;
	}
	
	.manage-options-list-li-name {
		font-size: 25rpx;
	}
	
</style>